package com.dubbo.yewu.system.init;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dubbo.platform.product.contract.IProductService;
import com.dubbo.platform.user.contract.IUserService;
import org.springframework.stereotype.Component;

/**
 */
@Component
public class RPCClients {
    @Reference(version = "1.0.0", timeout = 2000)
    private IProductService syncProductService;

    @Reference(version = "1.0.0", timeout = 2000)
    private IUserService syncUserService;

    public IProductService getSyncProductService() {
        return syncProductService;
    }

    public IUserService getSyncUserService() {
        return syncUserService;
    }
}
